package com.pipa.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class MySQLConexion {
	
	static{
		try {
			Class.forName("com.mysql.jdbc.Driver");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}

	public static Connection getConexion(){
		Connection con=null;
		try {
			con=DriverManager.getConnection("jdbc:mysql://localhost:3306/proyecto_integrador","root","mysql");			
		}catch (Exception e) {
			e.printStackTrace();
		}
		return con;
	}	
}